import types from "../../action/types"
const defaultData = {
    theme : "#5994FE",  // 主题色
    subtopic:"#F54949"    // 副主题色
};
export default function setTheme(state:any = defaultData,action:any){
    switch (action.type) {
        case types.THEME:
            return{
                ...state,
                theme:action.theme
            };
        default:
            return state
    }
}
